How to create input output in files in c programming